#include "derivative.h" /* include peripheral declarations */
#include "PAP_defs.h"

#define RTI_DISABLE 0
#define RTI_PERIOD_8MS 1
#define RTI_PERIOD_32MS 2
#define RTI_PERIOD_64MS 3
#define RTI_PERIOD_128MS 4
#define RTI_PERIOD_256MS 5
#define RTI_PERIOD_512MS 6
#define RTI_PERIOD_1024MS 7

#define RTI_CLK_INTERNAL 0
#define RTI_CLK_EXTERNAL 1

void vfnRTI_ClearFlag (void);

uint8 u8RTI_CheckFlag (void);

void vfnRTI_EnableInterrupt (void);

void vfnRTI_DisableInterrupt (void);

void vfnRTI_DelaySelect (uint8 u8RTI_Period);

void vfnRTI_ClockSelect (uint8 u8RTI_Clock);

void vfnRTI_Init (void);